package com.hospital.dictionary.module.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hospital.dictionary.module.entity.SysPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysPermissionService extends IService<SysPermission> {

    List<SysPermission> queryByUser(@Param("username") String username);

    void addPermission(SysPermission permission);

    void editPermission(SysPermission permission);

    void deletePermission(String id);

    void deletePermRuleByPermId(String id);
}
